<?php
namespace Home\Controller;
use Think\Controller;
class IndexController extends Controller {
    public function index(){
    	 $this->display();
    }
    public function curriculum(){
	     $curriculum=M('curriculum')->select();
	     $this->ajaxReturn(array('data' =>$curriculum));
    }
    public function news(){
         $news=M('news');
         // 指定查找
         $newsinformation=$news->field('id,title,time')->select();
         $this->ajaxReturn(array('news' =>$newsinformation));
    }
    
}